package org.rency.ues.annotation;

import org.springframework.stereotype.Component;

/**
 * ${todo}
 *
 * @author: Created by user_rcy@163.com on 2016/8/12.
 * @version: V1.0.0
 * @since JDK 1.8
 */
@Component("memberService")
public class MemberService {

    @Encrypt
    public MemberDomain save(@EncryptParameter(includeField = {"memberName","memberId"}) MemberDomain domain){
        System.out.println("Encrypt After="+domain);
        return domain;
    }

    @Decrypt(includeField = {"memberName"})
    public MemberDomain get(MemberDomain domain){
        return domain;
    }

}